package com.jiyinit.web.core.business.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author zhaolaiwei
 * @version 1.0
 * @date 2017/4/20 17:40
 * @since 1.0
 */
public class OrgRequest {

    private Integer orgId;

    /**
     * 编号
     */
    private String orgCode;

    /**
     * 名称
     */
    @NotBlank(message = "部门名称不能为空")
    private String orgName;

    /**
     * 父机构
     */
    @NotNull(message = "父菜单不能为空")
    private Integer parentId;

    private Integer inOrder;

    public Integer getInOrder() {
        return inOrder;
    }

    public void setInOrder(Integer inOrder) {
        this.inOrder = inOrder;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
